package org.yoki.edu.bg.radius.web.api.server.command;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 代码生成器自动生成
 * Date:2018-1-31 15:03:15
 * @author
 */
@Data
@ApiModel(value = "Server更新操作参数")
public class ServerUpdateCommand implements Serializable{

    /** 主键id*/
    @ApiModelProperty(value = "主键id", hidden = false, required = true)
    @NotNull(message = "主键id不能为空")
    private Integer id;
    /** 操作人员Id*/
    @ApiModelProperty(value = "操作人员Id", hidden = false, required = true)
    private Integer operatorId;
    /** 操作人名称*/
    @ApiModelProperty(value = "操作人名称", hidden = false, required = true)
    @Length(max = 128,message = "操作人名称不能超过128位")
    private String operatorName;
    /** 名称*/
    @ApiModelProperty(value = "名称", hidden = false, required = true)
    @NotBlank(message = "名称不能为空")
    @Length(max = 128,message = "名称不能超过128位")
    private String name;
    /** IP地址*/
    @ApiModelProperty(value = "IP地址", hidden = false, required = true)
    @NotBlank(message = "IP地址不能为空")
    @Length(max = 128,message = "IP地址不能超过128位")
    private String ipAddr;
    /** 是否正常，是：1(true)，否：0(false)*/
    @ApiModelProperty(value = "是否正常，是：1(true)，否：0(false)", hidden = false, required = true)
    @NotNull(message = "是否正常，是：1(true)，否：0(false)不能为空")
    private Boolean isWork;
    /** 密钥*/
    @ApiModelProperty(value = "密钥", hidden = false, required = true)
    @NotNull(message = "密钥")
    private String secret;

}